package cn.ywsj.ywsjmidtier.service;

import cn.ywsj.ywsjmidtier.common.Connect;
import com.alibaba.fastjson.JSONObject;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.BindingResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @ClassName : AppWebankCompanyFeign
 * @Author : Lenovo
 * @Date: 2021/7/23 10:36
 * @Description :
 */
@FeignClient(url = Connect.XSX_URL,name = "xsx")
public interface AppWebankCompanyFeign {
    @PostMapping("/appwebank/openaccount")
    String openAccount(@RequestParam("jsonObject")JSONObject jsonObject);
    @RequestMapping("/appwebank/appwebankindex")
    String webankIndex();
    @GetMapping("/appwebank/syncpaymentinformation")
    String syncPaymentInformation(@RequestParam("jsonObject") JSONObject jsonObject,@RequestParam("result") BindingResult result);
     @GetMapping("/appwebank/batchSightConfirm")
    String batchSightConfirm(@RequestParam("jsonObject")JSONObject jsonObject,@RequestParam("result") BindingResult result);
    @GetMapping("/appwebank/batchconfirm")
    String batchconfirm(@RequestParam("jsonObject")JSONObject jsonObject,@RequestParam("result") BindingResult result);
    @GetMapping("/appwebank/queryTransResult")
    String queryTransResult(@RequestParam("jsonObject")JSONObject jsonObject,@RequestParam("result") BindingResult result);
    @GetMapping("/appwebank/returnGoods")
    String returnGoods(@RequestParam("jsonObject")JSONObject jsonObject,@RequestParam("result") BindingResult result);
}
